﻿/*
    Copyright (c) 2013-2014 Contributors as noted in the AUTHORS file

    This file is part of  RuNet Importer for NodeXL.

    RuNet Importer is free software; you can redistribute it and/or modify it under
    the terms of the Microsoft Public License (Ms-PL), or (at your option) any later 
	version.

    RuNet Importer is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
	See the Microsoft Public License for more details.

    You should have received a copy of the Microsoft Public License
    along with this program.  If not, see <http://www.microsoft.com/en-us/openness/licenses.aspx>.
*/

using System;

namespace rcsir.net.ok.importer.Events
{
    public class CommandEventArgs : EventArgs
    {
        public enum Commands { GetAccessToken, LoadFriends, GetGraphByAreFriends, GetGraphByMutualFriends, GenerateGraphByAreFriends, GenerateGraphByMutualFriends, UpdateAllAttributes };

        public readonly Commands CommandName;
        public readonly string Parameter;
        public readonly bool[] Rows;
        public readonly bool IsMeIncluding;

        public CommandEventArgs(Commands name, string parameter = null)
        {
            CommandName = name;
            Parameter = parameter;
        }

        public CommandEventArgs(Commands name, bool[] rows, bool isMeIncluding)
        {
            CommandName = name;
            Rows = rows;
            IsMeIncluding = isMeIncluding;
        }
    }
}
